package com.sidianzhong.sdz.mapper;

import com.sidianzhong.sdz.model.UserChange;
import com.sidianzhong.sdz.model.UserChangeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserChangeMapper {
    long countByExample(UserChangeExample example);

    int deleteByExample(UserChangeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserChange record);

    int insertSelective(UserChange record);

    List<UserChange> selectByExample(UserChangeExample example);

    UserChange selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserChange record, @Param("example") UserChangeExample example);

    int updateByExample(@Param("record") UserChange record, @Param("example") UserChangeExample example);

    int updateByPrimaryKeySelective(UserChange record);

    int updateByPrimaryKey(UserChange record);

    Double getAmount(Integer userId, Integer coinId, Integer status);

    Double getDayAmount(Integer userId, Integer coinId);
}